<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<h:outputStylesheet library="css" name="principal.css"></h:outputStylesheet>
</h:head>

<h:body id="body">

	<div id="topo">

		<p:layoutUnit position="center">
			<p:graphicImage library="images" name="logo2.png" />
		</p:layoutUnit>

	</div>
	<div id="panel">
		<p:panel header="Login">

			<h:form>
			<p:growl id="growl" showDetail="true" sticky="true" /> 
				<p:panelGrid columns="2">
					<h:outputLabel id="Login" for="login" value="Login:"></h:outputLabel>
					<p:inputText id="login" size="28"
						value="#{loginBean.usuario.login}">
					</p:inputText>
					<h:outputLabel id="Senha" for="senha" value="Senha: "></h:outputLabel>
					<p:password id="senha" size="28" value="#{loginBean.usuario.senha}"></p:password>
				</p:panelGrid>
				<p:commandButton value="OK"
					actionListener="#{loginBean.validaLogin}"  update="growl" />
				<p:message for="login" id="msgLogin" display="icon" />
			</h:form>
		</p:panel>
		<p:link value="Esqueceu a Senha?" />
		<br />
		<p:link value="Cadastre-se aqui" href="cadastrar_usuario_fluxo.xhtml" />
	</div>
</h:body>

</html>